[Perl] Passing constants to subroutines

Posted by user296076 on Stack Overflow See other posts from Stack Overflow or by user296076
Published on 2010-03-17T22:09:17Z Indexed on 2010/03/17 22:11 UTC
Read the original article Hit count: 369

Filed under:
|
|
|

I have got as follows:

use constant ABC => ('one', 'two', 'three');

and I want to pass this constant to variations_with_repetition(\@data, $k) subroutine as @data.

How should I do that?

© Stack Overflow or respective owner

Related posts about perl

Related posts about constant